import request from '@/common/request'

export function list(data) {
    return request({
        url: '/apikanke/gradeclass/list',
        data:data,
        method: 'post'
    })
}

//班级数据
export function getClassData(data) {
    return request({
        url: '/apikanke/gradeclass/getClassData',
        data:data,
        method: 'post'
    })
}
//班级数据
export function getClassInfo(data) {
    return request({
        url: '/apikanke/gradeclass/getClassInfo',
        data:data,
        method: 'post'
    })
}
//编辑
export function edit(data) {
    return request({
        url: '/apikanke/gradeclass/edit',
        data:data,
        method: 'post'
    })
}
//删除
export function del(data) {
    return request({
        url: '/apikanke/gradeclass/del',
        data:data,
        method: 'post'
    })
}

//老师移出
export function teacherRemove(data) {
    return request({
        url: '/apikanke/gradeclass/teacherRemove',
        data:data,
        method: 'post'
    })
}

//老师换班
export function teacherShift(data) {
    return request({
        url: '/apikanke/gradeclass/teacherShift',
        data:data,
        method: 'post'
    })
}

//学员移出
export function studentRemove(data) {
    return request({
        url: '/apikanke/gradeclass/studentRemove',
        data:data,
        method: 'post'
    })
}

//学员换班
export function studentShift(data) {
    return request({
        url: '/apikanke/gradeclass/studentShift',
        data:data,
        method: 'post'
    })
}

//班级添加老师
export function assignTeacher(data) {
    return request({
        url: '/apikanke/gradeclass/assignTeacher',
        data:data,
        method: 'post'
    })
}

//班级添加学员
export function assignStudent(data) {
    return request({
        url: '/apikanke/gradeclass/assignStudent',
        data:data,
        method: 'post'
    })
}

//是否可以删除
export function isCanDel(data) {
    return request({
        url: '/apikanke/gradeclass/isCanDel',
        data:data,
        method: 'post'
    })
}